using Spring.Globalization;

namespace Spring.DataBinding;

/// <summary>
///
/// </summary>
public interface IBindingAwareFormatter : IFormatter
{
    /// <summary>
    /// Sets the binding context of this formatter.
    /// </summary>
    /// <param name="source"></param>
    /// <param name="target"></param>
    /// <param name="variables"></param>
    /// <param name="direction"></param>
    void SetBindingContext(object source, object target, IDictionary<string, object> variables, BindingDirection direction);

    /// <summary>
    /// Clears the binding context of this formatter.
    /// </summary>
    void ClearBindingContext();
}
